<?php

return [
    'paths'                    => ['*'], // 'api/*'
    'allowed_origins'          => env('app_debug') ? ['http://localhost:5173', 'http://web.kitegoadmin.local'] : ['*'], // 开发环境下可用于兼容amis编辑器的api请求
    'allowed_origins_patterns' => [],
    'allowed_methods'          => ['GET', 'POST'],
    'allowed_headers'          => ['*'],
    'exposed_headers'          => [],
    'max_age'                  => 0,
    'supports_credentials'     => (bool)env('app_debug') // 开发环境下可用于兼容amis编辑器的api请求
];
